package xyz.luhui1hao.o2o.service;

import java.util.List;

import org.springframework.web.multipart.commons.CommonsMultipartFile;
import xyz.luhui1hao.o2o.domain.Product;
import xyz.luhui1hao.o2o.dto.ProductExecution;

public interface ProductService {
	ProductExecution getProductList(Product productCondition, int pageIndex, int pageSize);

	Product getProductById(long productId);

	ProductExecution addProduct(Product product, CommonsMultipartFile thumbnail, List<CommonsMultipartFile> productImgs)
			throws RuntimeException;

	ProductExecution modifyProduct(Product product, CommonsMultipartFile thumbnail,
                                   List<CommonsMultipartFile> productImgs) throws RuntimeException;
}
